import {
	$http
} from '@escook/request-miniprogram'
export default {
	supplier_login(data) { //登录
		return $http.post('/auth/supplier_login', data)
	},
	getSupplierUserInfo(data) { //用户信息
		return $http.get('/order/supplier_applet/getSupplierUserInfo', data)
	},
	getOperational(data) { //当月流水
	//   /supplier/index/getOperational
		return $http.post('/order/supplier_applet/getOperational', data)
	},
	getFleetList(data) { //当月流水
		return $http.get('/order/supplier_applet/fleet/list', data)
	},
	vehicleList(data) { //车辆列表
		return $http.get('/supplier/vehicle/vehicleList', data)
	},
	vehicleModePull(data) { //车辆结构
		return $http.get('/supplier/vehicle/vehicleModePull', data)
	},
	vehicleinsert(data) { //新增车辆
		return $http.post('/order/supplier_applet/vehicle/insert', data)
	},
	updateDetail(data) { //编辑车辆详情
		return $http.get('/order/supplier_applet/vehicle/updateDetail', data)
	},
	driverBindCar(data) { //绑定司机
		return $http.get('/account/driver/driverBindCar', data)
	},
	vehicleupdate(data) { //编辑车辆
		return $http.post('/order/supplier_applet/vehicle/update', data)
	},
	deleteVehicle(data) { //删除车辆
		return $http.get('/order/supplier_applet/deleteVehicle/'+data)
	},
	checkNumberplate(data) { //校验车牌
		return $http.get('/supplier/vehicle/checkNumberplate',data)
	},
}